Learn R Programming

SpaDES (version 1.0.1)

[[: Extract or replace parts of an object from the simulation environment

Description

Extract or replace parts of an object from the simulation environment

Usage

## S3 method for class 'simList,ANY,ANY':
[[(x, i, j, ..., drop)

## S3 method for class 'simList,ANY,ANY,ANY':
[[(x, i) <- value

## S3 method for class 'simList':
$(x, name)

## S3 method for class 'simList':
$(x, name) <- value

Arguments

x
object from which to extract element(s) or in which to replace element(s).
i
indices specifying elements to extract or replace.
j
see i.
...
see i.
drop
not implemented.
value
Any R object.
name
A literal character string or a name.